//引入请求库
import http from "@/utils/http2";

/**
 * 查询
 * @param data
 * @returns {*}
 */
export function queryForwarder(data) {
  return http.post("/api/forwarder/list", data);
}

/**
 * 保存
 * @param data
 * @returns{*}
 */
export function saveForwarder(data) {
  return http.post("/api/forwarder", data);
}

//查货代详情
/**
 *
 * @param id
 * @returns {*}
 */
export function queryForwarderDetail(id) {
  return http.get("/api/forwarder/select" ,{id});
}

//修改
/**
 *修改
 * @param data
 * @returns {*}
 */
export function updateForwarder(data){
  return http.put("/api/forwarder/update", data);
}


